// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2004-11-25

#ifndef __BASE_MAKEID_H_COMMON_SVR_BASE__
#define __BASE_MAKEID_H_COMMON_SVR_BASE__

#pragma once

namespace JoyServer
{

//##ModelId=44CEFAD10109
class CJoyMakeId
{
protected:
	//##ModelId=44CEFAD1011D
    class CIdNode
    {
    public:
		//##ModelId=44CEFAD1012B
        CIdNode*    m_next;
		//##ModelId=44CEFAD1012D
        UINT    m_id;
		//##ModelId=44CEFAD1012E
        DWORD   m_tick;
    };
	//##ModelId=44CEFAD1010B
    CJoyCriticalSection m_lock;
	//##ModelId=44CEFAD1010F
    DWORD   m_elapse;
	//##ModelId=44CEFAD10119
    UINT    m_currId;
public:
	//##ModelId=44CEFAD1011A
    CJoyMakeId(DWORD dwElapse = 0);
	//##ModelId=44CEFAD1011C
    ~CJoyMakeId();
};


} // namespace JoyServer

#endif  // __BASE_MAKEID_H_COMMON_SVR_BASE__
